package lion.bugrambo;

/**
 * @author lion
 * @email hl_0074@sina.com
 * @date 2014年12月2日
 */
public class BugRamboConsts {

	public static class BUGLEVEL {

		public static final String S1 = "系统缺陷";// 系统崩溃
		public static final String S2 = "模块缺陷"; // 模块无法正常运行或模块缺失
		public static final String S3 = "功能缺陷";// 功能未完成，或有错误
		public static final String S4 = "常识缺陷";// 排版错误，错别字,符号等常识性错误
		public static final String S5 = "建议性";// 建议可以做得更好

		public static String getLevelName(int level) {

			switch (level) {
			case 1:
				return S1;
			case 2:
				return S2;
			case 3:
				return S3;
			case 4:
				return S4;
			case 5:
				return S5;
			default:
				return "";
			}
		}
	}

	public static class BUGSOLVETYPE {

		public static final String T1 = "修改程序";
		public static final String T2 = "修改数据库";
		public static final String T3 = "调整运行环境";
		public static final String T4 = "调整操作流程";
		public static final String T5 = "有意为之";
		public static final String T6 = "无法重现";
		public static final String T7 = "误报";
		public static final String T8 = "特例";
		public static final String T9 = "转为新需求";

		public static String getTypeName(int type) {

			switch (type) {
			case 1:
				return T1;
			case 2:
				return T2;
			case 3:
				return T3;
			case 4:
				return T4;
			case 5:
				return T5;
			case 6:
				return T6;
			case 7:
				return T7;
			case 8:
				return T8;
			case 9:
				return T9;
			default:
				return "";
			}
		}
	}

	public static final class BugStatus {

		public static String getName(int status) {

			switch (status) {
			case 2:
				return "已解决";
			case 3:
				return "已关闭";

			default:
				return "";
			}
		}

	}

}
